﻿﻿
<!--********************* Part1:Jsp Head *********************-->

<%@ page contentType="text/html;charset=UTF-8"%>  
<%@ include file="/framework/head.jsp"%>

<!--********************* Part2:Java Code *********************-->
<%
    ProductPageData obj = (ProductPageData)context.getValue("ProductPageData");
    
    Conditions cs = new Conditions();
    cs.add(Provider.STATUS, "1");
    ObjectList list = Provider.fetch().search(con, cs);
    
    ObjectList tManuf1 = ProductCategory.getCategoryLevel1(con);
    ObjectList tManuf2 = ProductCategory.getCategoryLevel2(con);
    ObjectList tManuf3 = ProductCategory.getCategoryLevel3(con);
    
    String categorycode1 = obj.getCategoryCode();
    if (categorycode1 == null) categorycode1 = "";
    String categorycode2 = "";
    if (!categorycode1.equals(""))
    {
        ProductCategory pc2 = ProductCategory.fetchByCode(con,categorycode1);
        if (pc2 != null)
        {
            categorycode2 = pc2.getUpperCategory();
        }
    }
    String categorycode3 = "";
    if (!categorycode2.equals(""))
    {
        ProductCategory pc3 = ProductCategory.fetchByCode(con,categorycode2);
        if (pc3 != null)
        {
            categorycode3 = pc3.getUpperCategory();
        }
    }
    System.out.println(categorycode3 + "-" + categorycode2 + "-" + categorycode1);
    
%>

<!--********************* Part3:JavaScript Code ***************-->
<%@page import="java.sql.ResultSet"%>
<%@page import="framework.core.DBResult"%>
<script language="javascript">

var g_check_items = new Array();
var g_i = 0 ;
g_check_items[g_i++] = new CheckItem("供应商","ProviderCode",true,true,10,false,0);
g_check_items[g_i++] = new CheckItem("结算模式","BalanceMode",true,true,20,false,0);
g_check_items[g_i++] = new CheckItem("产品编码","ConcentricityCode",true,true,20,false,0);
//g_check_items[g_i++] = new CheckItem("产品编码(自定义部分)","ConcentricityCode_show",true,true,16,false,0);


//g_check_items[g_i++] = new CheckItem("产品编码(18位)","ApepCode",true,true,20,false,0);

g_check_items[g_i++] = new CheckItem("产品名称","Name",true,true,50,false,0);

g_check_items[g_i++] = new CheckItem("产品分类编码","Category",true,true,20,false,0);
g_check_items[g_i++] = new CheckItem("计量单位","ProductUnit",true,true,20,false,0);
g_check_items[g_i++] = new CheckItem("品牌","ProductBrand",false,true,50,false,0);

g_check_items[g_i++] = new CheckItem("型号","Model",false,true,200,false,0);

g_check_items[g_i++] = new CheckItem("规格","Spec",false,true,200,false,0);
g_check_items[g_i++] = new CheckItem("生产厂家","Manufaturer",false,true,50,false,0);

g_check_items[g_i++] = new CheckItem("产地","Area",false,true,50,false,0);
g_check_items[g_i++] = new CheckItem("单价","UnitPrice",true,false,0,true,CHECK_ITEM_TYPE_DOUBLE);
g_check_items[g_i++] = new CheckItem("质保期","QualityAssurePeriod",false,true,500,false,0);
g_check_items[g_i++] = new CheckItem("图件号","DrawingPieceCode",false,true,50,false,0);
//SetValue("s_GrandfatherCategoryCode",GetValue("i_GrandfatherCategoryCode")); //产品分类编码


function doSaveAndNew()
{
    cateCode = GetValue("CategoryCode");
    upperCode = GetValue("UpperCategoryCode");
    graCode = GetValue("GrandfatherCategoryCode");
    
    if(cateCode.length == 0){
       cateCode = upperCode;
       if(cateCode.length == 0){
          cateCode = graCode;
        }  
    }
    
    SetValue("Category", cateCode);
    SetValue("ConcentricityCode", GetValue("ConcentricityCode") + GetValue("ConcentricityCode_show"));
    //alert(GetValue("ConcentricityCode"));
    var value = GetValue("ConcentricityCode");
    //alert(GetValue("ConcentricityCode"));
    //alert(value.length);
    if(value.length != 16){alert("产品编码总长必须是16位");return false;}
        
    if(!CheckInput(g_check_items)) return false;
    SetAction("saveAndNewProduct");
    frm.submit();
}
function doSave()
{
    cateCode = GetValue("CategoryCode");
    upperCode = GetValue("UpperCategoryCode");
    graCode = GetValue("GrandfatherCategoryCode");
    
    if(cateCode.length == 0){
       cateCode = upperCode;
       if(cateCode.length == 0){
          cateCode = graCode;
        }  
    }
    
    SetValue("Category", cateCode);
    SetValue("ConcentricityCode", GetValue("ConcentricityCode") + GetValue("ConcentricityCode_show"));
    //alert(GetValue("ConcentricityCode"));
    var value = GetValue("ConcentricityCode");
    //alert(GetValue("ConcentricityCode"));
    //alert(value.length);
    if(value.length != 16){alert("产品编码总长必须是16位");return false;}   
     
    if(!CheckInput(g_check_items)) return false;
    SetAction("saveProduct");
    frm.submit();
}
function doCancel()
{
    SetAction("backListProduct");
    frm.submit();
}


function selectOnChange1()
{
  var val = GetValue("GrandfatherCategoryCode");
  if(val==''){
    var listbox = document.getElementById("UpperCategoryCode");
    listbox.length = 0;
    var option = new Option();
    option.text = "---二级---";
    option.value = "";
    listbox.options[listbox.length] = option;
    //change2(optval);
  }else{
      var counter="0";
      <%if(tManuf1.size()>0)
      {
          for(int i=0;i<tManuf1.size();i++)
          {
              ProductCategory pc1 = (ProductCategory)tManuf1.get(i);
              String tCode1 = pc1.getCode();
              %>
              if(val == '<%=tCode1%>')
              {
                counter="1";
                var listbox = document.getElementById("UpperCategoryCode");
                listbox.length = 0;
                var option1 = new Option();
                option1.text = "---二级---";
                option1.value = "";
                listbox.options[listbox.length] = option1;
                <%
                for(int n=0;n<tManuf2.size();n++)
                {
                    ProductCategory pc2 = (ProductCategory)tManuf2.get(n);
                    String tUpperCategory = pc2.getUpperCategory();
                    if(tUpperCategory == null) tUpperCategory = "";
                    if(tUpperCategory.equals(tCode1))
                    {
                        String categoryId = pc2.getCode();
                        String categoryName = pc2.getName();
                        %>
                        var temp1 = '<%=categoryId%>';
                        var temp2 = '<%=categoryName%>';
                        var option1 = new Option();
                        option1.value = temp1;
                        option1.text = temp2;
                        listbox.options[listbox.length] = option1;                       
                        <%
                    }
                }//end for
                %>
         
               }//end if
          <%
            }//end for
        }//end if
      %>
      
      if(counter == '0')
      {
          var listbox = document.getElementById("UpperCategoryCode");
          listbox.length = 0;
          var option = new Option();
          option.value = "";
          option.text = "---二级---";
          listbox.options[listbox.length] = option;  
       }

   }//end else

}


function selectOnChange2()
{
  var val = GetValue("UpperCategoryCode");
  if(val==''){
    var listbox = document.getElementById("CategoryCode");
    listbox.length = 0;
    var option = new Option();
    option.text = "---三级---";
    option.value = "";
    listbox.options[listbox.length] = option;
    //change2(optval);
  }else{
      var counter="0";
      <%if(tManuf1.size()>0)
      {
          for(int i=0;i<tManuf2.size();i++)
          {
              ProductCategory pc2 = (ProductCategory)tManuf2.get(i);
              String tCode2 = pc2.getCode();
              %>
              if(val == '<%=tCode2%>')
              {
                counter="1";
                var listbox = document.getElementById("CategoryCode");
                listbox.length = 0;
                var option1 = new Option();
                option1.text = "---三级---";
                option1.value = "";
                listbox.options[listbox.length] = option1;
                <%
                for(int n=0;n<tManuf3.size();n++)
                {
                    ProductCategory pc3 = (ProductCategory)tManuf3.get(n);
                    String tUpperCategory = pc3.getUpperCategory();
                    if(tUpperCategory == null) tUpperCategory = "";
                    if(tUpperCategory.equals(tCode2))
                    {
                        String categoryId = pc3.getCode();
                        String categoryName = pc3.getName();
                        %>
                        var temp1 = '<%=categoryId%>';
                        var temp2 = '<%=categoryName%>';
                        var option1 = new Option();
                        option1.value = temp1;
                        option1.text = temp2;
                        listbox.options[listbox.length] = option1;                       
                        <%
                    }
                }//end for
                %>
         
               }//end if
          <%
            }//end for
        }//end if
      %>
      
      if(counter == '0')
      {
          var listbox = document.getElementById("CategoryCode");
          listbox.length = 0;
          var option = new Option();
          option.value = "";
          option.text = "---三级---";
          listbox.options[listbox.length] = option;  
       }

   }//end else

}

//供应商选择后处理
function onSelectProvider(obj)
{
    SetValue("ProviderName", obj.Name);
    if(obj.Code != "") SetValue("ProviderCode", obj.Code);
    
}

//产品分类选择后处理
function onSelectWarehouseCategory(obj)
{
    //debugger;
    SetValue("CategoryName", obj.CategoryName);
    if(obj.CategoryCode != "") SetValue("CategoryCode1", obj.CategoryCode);
    
}

key_InitDefault();
key_RegSubmitHandler(doSaveAndNew);
</script>

<%=uiBody%>>

<%@ include file="/framework/menu.jsp"%>

<!--********************* Part4:Form  ***************-->

<form id=frm action="<%=Config.getSrv()%>" method="post">
<input type=hidden name="action_code">
<input type=hidden name="Id" value="<%=obj.getId()%>">
<input type=hidden name="Category">
<br>

<%=UIManager.addEditHeadTitle("临时产品信息设置")%>


<!--********************* Part5:Edit Area  ***************-->
<%=uiEditStart%>>
<%
    int key_tab = 1 ;
    String strShowProName = "";
%>

<%=uiEditTR%>>
        <%=uiEditHeadTD%> width=250>供应商：</td>
        <%=uiEditTD%>>
        <!-- <select name="ProviderCode" <%=(obj.viewProviderCode(con).equals(""))?"obj.viewProviderCode(con)":"disabled"%>> -->
        <!-- <input type=select class="texts"  name="ProviderCode" size=20  value="<%=obj.viewProviderCode(con)%>" key_tab="<%=key_tab++%>"> -->
        <!--     <select name="ProviderCode" <%=(obj.viewProviderCode(con).equals(""))?"":"disabled"%> >
                <option value="" <%=(obj.viewProviderCode(con).equals(""))?"selected":""%>>请选择</option>
                <%for(int i=0;i<list.size();i++)
                {
                    Provider pro = (Provider)list.get(i);
                    if (obj.getProviderCode().equals(pro.getCode()))
                            strShowProName = pro.getName(); 
                %>
                    <option value="<%=pro.viewCode(con)%>" <%=(obj.getProviderCode().equals(pro.getCode()))?"selected":""%>><%= pro.viewName(con)%></option>
                <%
                }
                %>
            </select>-->
            <input type="hidden" name="ProviderCode" value="<%=obj.getProviderCode()%>"> 
            <input type="text" class="texts" name="ProviderName" value="<%=strShowProName%>" size="20" readonly="readonly">
            <input type=button class=buttons value="选择" onclick="bizSelectProvider(false);return false"><font color=red>*</font>
        </td>
    </tr>
    <%=uiEditTR%>>
        <%=uiEditHeadTD%> width=250>结算模式：</td>
        <%=uiEditTD%>>
           <!--  <input type=text class="texts"  name="BalanceMode" size=20  value="<%=obj.viewBalanceMode(con)%>" key_tab="<%=key_tab++%>"> -->
            <!--  <%=SelectManager.viewYKorMD("BalanceMode",obj.viewBalanceMode(con),true,"",SelectManager.SELECT_ALL,"","key_tab="+(key_tab++))%>-->
             <select name="BalanceMode" <%=(obj.viewBalanceMode(con).equals(""))?"":"disabled"%> >
                <option value="1" <%=(obj.viewBalanceMode(con).equals("1"))?"selected":""%>><%= ConstDefine.STR_NAME_YK%></option>
                <option value="2" <%=(obj.viewBalanceMode(con).equals("2"))?"selected":""%>><%= ConstDefine.STR_NAME_MD%></option>
            </select><font color=red>*</font>
        </td>
    </tr>
   <%=uiEditTR%>>
        <%=uiEditHeadTD%> width=250>产品编码：</td>
        <%=uiEditTD%>>
            <%String strNewCodeSub1 = ""; %>
            <%String strNewCodeSub2 = ""; %>
            <%
            //if (!obj.viewName(con).equals("")){
            if (!obj.getId().equals("")){
            %>
            <%
            String strNewCode1 = obj.viewConcentricityCode(con);
            String strNewCode2 = strNewCode1;
            if (strNewCode1.equals("")){
                strNewCodeSub1 = loginInfo.getLoginWarehouseCode();
                strNewCodeSub2 = TableSequence.getProductSeqVal(con,loginInfo.getLoginWarehouseCode());
            }else{
                strNewCodeSub1 = strNewCode1.substring(0,6);
                strNewCodeSub2 = strNewCode2.substring(6);
            }
            %>
            <input type=hidden class="hidden" name="ConcentricityCode" size=20  value="<%=strNewCodeSub1%>" key_tab="<%=key_tab++%>" ><font color=red>*</font> 
            <%=strNewCodeSub1 %>
                <input type=select class="select"  name="ConcentricityCode_show" size=20  value="<%=strNewCodeSub2%>" key_tab="<%=key_tab++%>" disabled="disabled"><font color=red>*</font>  
            <%} else{
                    //String strNewCode = obj.viewWarehouseCode(con);
                strNewCodeSub1 = obj.viewWarehouseCode(con);
                if (strNewCodeSub1.equals(""))
                    strNewCodeSub1 = loginInfo.getLoginWarehouseCode();
                strNewCodeSub2 = TableSequence.getProductSeqVal(con,loginInfo.getLoginWarehouseCode());
                %>
                <input type=hidden class="hidden"  name="ConcentricityCode" size=20  value="<%=strNewCodeSub1%>" key_tab="<%=key_tab++%>">
                <%=strNewCodeSub1 %><input type=select class="select"  name="ConcentricityCode_show" size=20  value="<%=strNewCodeSub2%>" key_tab="<%=key_tab++%>" ><font color=red>*</font>  
            <%}%>
        </td>
    </tr>  
    
      
            <input type=hidden class="texts"  name="ApepCode" size=20  value="" key_tab="<%=key_tab++%>">
       
    
    <%=uiEditTR%>>
        <%=uiEditHeadTD%> width=250>产品名称：</td>
        <%=uiEditTD%>>
            <input type=text class="texts"  name="Name" size=20  value="<%=obj.viewName(con)%>" key_tab="<%=key_tab++%>"><font color=red>*</font>
        </td>
    </tr>
  

    <%=uiEditTR%>>
        <%=uiEditHeadTD%> width=250>产品分类：</td>
        <%=uiEditTD%>>
            <%=SelectManager.viewGrandFatherSelect(con,"GrandfatherCategoryCode",categorycode3,true,"","--一级--","","onchange='selectOnChange1()' key_tab="+(key_tab++))%>
            <%=SelectManager.viewUpperSelect(con,"UpperCategoryCode",categorycode2,true,"","--二级--","","onchange='selectOnChange2()' key_tab="+(key_tab++))%>
            <%=SelectManager.viewUpperSelect(con,"CategoryCode",categorycode1,true,"","--三级--","","key_tab="+(key_tab++))%><font color=red>*</font>
        
        </td>
        <input type=hidden class="texts"  name="RecordDate" size=20  value="<%=obj.viewRecordDate(con).equals("") ?new framework.core.DateUtil().getFullString():obj.viewRecordDate(con)%>" key_tab="<%=key_tab++%>">
       
    </tr>
       <!-- 
     <%=uiEditTR%>>
        <%=uiEditHeadTD%> width=250>产品编码：</td>
        <%=uiEditTD%>>
            <input type=hidden class="texts"  name="ApepCode" size=20  value="<%=obj.viewApepCode(con)%>" key_tab="<%=key_tab++%>">
       </td>
    </tr>  
     -->
      
 <%
 /**    提取报表产品分类   开始 benny00030100000K2201*/
    DBResult dbrs = null;
    ResultSet row = null;
    String str1 = obj.viewWarehouseCode(con);
    String str2 = obj.viewConcentricityCode(con);
    String categoryCode = "";
    String categoryName = "";
    if(str1.equals("") || str1 == null || str2.equals("") || str2 == null ){
        categoryCode = "";
        categoryName = "";
    }else{
        String sql = "select CATEGORY_CODE,CATEGORY_NAME " +
        "from T_WAREHOUSE_CATEGORY where CATEGORY_CODE = " +
        "(select CATEGORY_CODE from T_WAREHOUSE_CATEGORY_RELATION where WAREHOUSE_CODE = "+
                "'"+str1+"' and PRODUCT_CODE = '"+str2+"') ";
        try {
            dbrs = DBEngine.doSelect(con,sql);
            row = dbrs.getRs();
            if(row.next()){
                categoryCode = row.getString(1);
                categoryName = row.getString(2);
            }
        } catch (Exception e) {
            e.printStackTrace();
        } finally {
            try {
                dbrs.clear();
            } catch (Exception e) {
                e.printStackTrace();
            }
        }
    }
/**    提取报表产品分类   结束 benny*/    
%>

    <%=uiEditTR%>>
        <%=uiEditHeadTD%> width=250>报表产品分类：</td>
        <%=uiEditTD%>>
            <input type=text class="texts"  name="CategoryName" value="<%=categoryName%>" size="20" readonly="readonly">
            <input type="hidden" name="CategoryCode1" value="<%=categoryCode%>"> 
            <input type=button class=buttons value="选择" onclick="bizSelectWarehouseCategory(false, '<%= obj.viewWarehouseCode(con) %>');return false">
        </td>
    </tr>
    
    <%=uiEditTR%>>
        <%=uiEditHeadTD%> width=250>品牌：</td>
        <%=uiEditTD%>>
            <input type=text class="texts"  name="ProductBrand" size=20  value="<%=obj.viewProductBrand(con)%>" key_tab="<%=key_tab++%>"><font color=red>*</font>
        </td>
    </tr>
    <%=uiEditTR%>>
        <%=uiEditHeadTD%> width=250>单位：</td>
        <%=uiEditTD%>>
            <input type=text class="texts"  name="ProductUnit" size=20  value="<%=obj.viewProductUnit(con)%>" key_tab="<%=key_tab++%>"><font color=red>*</font>
        </td>
    </tr>

    <%=uiEditTR%>>
        <%=uiEditHeadTD%> width=250>型号：</td>
        <%=uiEditTD%>>
            <input type=text class="texts"  name="Model" size=20  value="<%=obj.viewModel(con)%>" key_tab="<%=key_tab++%>">
        </td>
    </tr>
    <%=uiEditTR%>>
        <%=uiEditHeadTD%> width=250>规格：</td>
        <%=uiEditTD%>>
            <input type=text class="texts"  name="Spec" size=20  value="<%=obj.viewSpec(con)%>" key_tab="<%=key_tab++%>">
        </td>
    </tr>
    
    <%=uiEditTR%>>
        <%=uiEditHeadTD%> width=250>生产厂商：</td>
        <%=uiEditTD%>>
            <input type=text class="texts"  name="Manufaturer" size=20  value="<%=obj.viewManufaturer(con)%>" key_tab="<%=key_tab++%>"><font color=red>*</font>
        </td>
    </tr>
    <%=uiEditTR%>>
        <%=uiEditHeadTD%> width=250>产地：</td>
        <%=uiEditTD%>>
            <input type=text class="texts"  name="Area" size=20  value="<%=obj.viewArea(con)%>" key_tab="<%=key_tab++%>">
        </td>
    </tr>
    <%=uiEditTR%>>
        <%=uiEditHeadTD%> width=250>图件号：</td>
        <%=uiEditTD%>>
            <input type=text class="texts"  name="DrawingPieceCode" size=20  value="<%=obj.viewDrawingPieceCode(con)%>" key_tab="<%=key_tab++%>">
        </td>
    </tr>
    
    <%=uiEditTR%>>
        <%=uiEditHeadTD%> width=250>质保期：</td>
        <%=uiEditTD%>>
            <input type=text class="texts"  name="QualityAssurePeriod" size=20  value="<%=obj.viewQualityAssurePeriod(con)%>" key_tab="<%=key_tab++%>">
        </td>
    </tr>
        <%=uiEditTR%>>
        <%=uiEditHeadTD%> width=250>单价：</td>
        <%=uiEditTD%>>
            <input type=text class="texts"  name="UnitPrice" size=20  value="<%=obj.viewUnitPrice(con)%>" key_tab="<%=key_tab++%>"><font color=red>*</font>
        </td>
        
    </tr>
    

 
    
    <%=uiEditTR%>>
        <%=uiEditHeadTD%> width=250>数据类型：</td>
        <%=uiEditTD%>>
            <!-- <%=obj.viewIsTradeflatProduct(con)%> --> 
            <input type=hidden class="texts"  name="IsTradeflatProduct" size=20  value="<%=ConstDefine.STR_VAL_HAND%>" key_tab="<%=key_tab++%>">
            手工录入
        </td>
    </tr>
    
    <%=uiEditTR%>>
        <%=uiEditHeadTD%> width=250>有效性：</td>
        <%=uiEditTD%>>
          
            <%=SelectManager.viewValidOrNoSelect("Status",obj.viewStatus(con),false,"",SelectManager.SELECT_ALL,"","key_tab="+(key_tab++))%><font color=red>*</font>
        </td>
    </tr>
    <%=uiEditTR%>>
        <%=uiEditHeadTD%> width=250>所属仓库：</td>
        <%=uiEditTD%>>
        <input type=hidden class="texts"  name="WarehouseCode" size=20  value="<%=obj.viewWarehouseCode(con)%>">
        <input type=hidden class="texts"  name="WarehouseName" size=20  value="<%=obj.viewWarehouseName(con)%>" key_tab="<%=key_tab++%>">
           <%=obj.viewWarehouseName(con)%>
        </td>
    </tr>
    <%=uiEditTR%>>
        <%=uiEditHeadTD%> width=250>是否正式产品：</td>
        <%=uiEditTD%>>
            <input type=hidden class="texts"  name="IsNormal" size=20  value="<%=obj.getId().equals("") ? ConstDefine.STR_NO : obj.viewIsNormal(con)%>" key_tab="<%=key_tab++%>">
            <%=ConstDefine.STR_NAME_NO%>
        </td>
    </tr>
    <%=uiEditTR%>>
        <%=uiEditHeadTD%> width=250>备注：</td>
        <%=uiEditTD%>>
            <textarea cols="50" rows="3" name="Remark"  value="<%=obj.viewRemark(con)%>" key_tab="<%=key_tab++%>"></textarea>
        </td>
    </tr>
    <!-- <%=uiEditTR%>>
        <%=uiEditHeadTD%> width=250>是否可采购：</td>
        <%=uiEditTD%>>
            <input type=hidden class="texts"  name="IsBuy" size=20  value="1" key_tab="<%=key_tab++%>">
        </td>
    </tr> -->
    
          
       <!-- 

    <%=uiEditTR%>>
        <%=uiEditHeadTD%> width=250>适用机型：</td>
        <%=uiEditTD%>>
            <input type=text class="texts"  name="AdaptMachineType" size=20  value="<%=obj.viewAdaptMachineType(con)%>" key_tab="<%=key_tab++%>">
        </td>
    </tr>
    


    <%=uiEditTR%>>
        <%=uiEditHeadTD%> width=250>图片：</td>
        <%=uiEditTD%>>
            <input type=text class="texts"  name="Pic" size=20  value="<%=obj.viewPic(con)%>" key_tab="<%=key_tab++%>">
        </td>
    </tr>
    


    <%=uiEditTR%>>
        <%=uiEditHeadTD%> width=250>最近调价时间：</td>
        <%=uiEditTD%>>
            <input type=text class="texts"  name="RecentAdjustpriceDate" size=20  value="<%=obj.viewRecentAdjustpriceDate(con)%>" key_tab="<%=key_tab++%>">
        </td>
    </tr>
    


    <%=uiEditTR%>>
        <%=uiEditHeadTD%> width=250>最近调价价格：</td>
        <%=uiEditTD%>>
            <input type=text class="texts"  name="RecentAdjustedPrice" size=20  value="<%=obj.viewRecentAdjustedPrice(con)%>" key_tab="<%=key_tab++%>">
        </td>
    </tr>
    


    <%=uiEditTR%>>
        <%=uiEditHeadTD%> width=250>录入人员账号：</td>
        <%=uiEditTD%>>
            <input type=text class="texts"  name="RecorderId" size=20  value="<%=obj.viewRecorderId(con)%>" key_tab="<%=key_tab++%>">
        </td>
    </tr>
    


    <%=uiEditTR%>>
        <%=uiEditHeadTD%> width=250>产品录入时间：</td>
        <%=uiEditTD%>>
            <input type=text class="texts"  name="RecordDate" size=20  value="<%=obj.viewRecordDate(con)%>" key_tab="<%=key_tab++%>"><font color=red>*</font>
        </td>
    </tr>
    


    <%=uiEditTR%>>
        <%=uiEditHeadTD%> width=250>是否交易平台的产品：</td>
        <%=uiEditTD%>>
            <input type=text class="texts"  name="IsTradeflatProduct" size=20  value="<%=obj.viewIsTradeflatProduct(con)%>" key_tab="<%=key_tab++%>"><font color=red>*</font>
        </td>
    </tr>
    


    <%=uiEditTR%>>
        <%=uiEditHeadTD%> width=250>产品附加属性：</td>
        <%=uiEditTD%>>
            <input type=text class="texts"  name="AppenderProperty" size=20  value="<%=obj.viewAppenderProperty(con)%>" key_tab="<%=key_tab++%>">
        </td>
    </tr>
    


    <%=uiEditTR%>>
        <%=uiEditHeadTD%> width=250>备注：</td>
        <%=uiEditTD%>>
            <input type=text class="texts"  name="Remark" size=20  value="<%=obj.viewRemark(con)%>" key_tab="<%=key_tab++%>">
        </td>
    </tr>

    <%=uiEditTR%>>
        <%=uiEditHeadTD%> width=250>是否正式产品：</td>
        <%=uiEditTD%>>
            <input type=text class="texts"  name="IsNormal" size=20  value="<%=obj.viewIsNormal(con)%>" key_tab="<%=key_tab++%>"><font color=red>*</font>
        </td>
    </tr>
    


    <%=uiEditTR%>>
        <%=uiEditHeadTD%> width=250>仓库编码：</td>
        <%=uiEditTD%>>
            <input type=text class="texts"  name="WarehouseCode" size=20  value="<%=obj.viewWarehouseCode(con)%>" key_tab="<%=key_tab++%>">
        </td>
    </tr>
    


    <%=uiEditTR%>>
        <%=uiEditHeadTD%> width=250>仓库名称：</td>
        <%=uiEditTD%>>
            <input type=text class="texts"  name="WarehouseName" size=20  value="<%=obj.viewWarehouseName(con)%>" key_tab="<%=key_tab++%>">
        </td>
    </tr>
    


    <%=uiEditTR%>>
        <%=uiEditHeadTD%> width=250>是否可采购：</td>
        <%=uiEditTD%>>
            <input type=text class="texts"  name="IsBuy" size=20  value="<%=obj.viewIsBuy(con)%>" key_tab="<%=key_tab++%>"><font color=red>*</font>
        </td>
    </tr>
    


    <%=uiEditTR%>>
        <%=uiEditHeadTD%> width=250>是否有效：</td>
        <%=uiEditTD%>>
            <input type=text class="texts"  name="Status" size=20  value="<%=obj.viewStatus(con)%>" key_tab="<%=key_tab++%>"><font color=red>*</font>
        </td>
    </tr>
    


    <%=uiEditTR%>>
        <%=uiEditHeadTD%> width=250>创建人序号：</td>
        <%=uiEditTD%>>
            <input type=text class="texts"  name="CreateUserId" size=20  value="<%=obj.viewCreateUserId(con)%>" key_tab="<%=key_tab++%>"><font color=red>*</font>
        </td>
    </tr>
    


    <%=uiEditTR%>>
        <%=uiEditHeadTD%> width=250>创建人：</td>
        <%=uiEditTD%>>
            <input type=text class="texts"  name="CreateUser" size=20  value="<%=obj.viewCreateUser(con)%>" key_tab="<%=key_tab++%>"><font color=red>*</font>
        </td>
    </tr>
    


    <%=uiEditTR%>>
        <%=uiEditHeadTD%> width=250>创建时间：</td>
        <%=uiEditTD%>>
            <input type=text class="texts"  name="CreateTime" size=20  value="<%=obj.viewCreateTime(con)%>" key_tab="<%=key_tab++%>"><font color=red>*</font>
        </td>
    </tr>
    


    <%=uiEditTR%>>
        <%=uiEditHeadTD%> width=250>最后修改人序号：</td>
        <%=uiEditTD%>>
            <input type=text class="texts"  name="LastUpdateUserId" size=20  value="<%=obj.viewLastUpdateUserId(con)%>" key_tab="<%=key_tab++%>"><font color=red>*</font>
        </td>
    </tr>
    


    <%=uiEditTR%>>
        <%=uiEditHeadTD%> width=250>最后修改人：</td>
        <%=uiEditTD%>>
            <input type=text class="texts"  name="LastUpdateUser" size=20  value="<%=obj.viewLastUpdateUser(con)%>" key_tab="<%=key_tab++%>"><font color=red>*</font>
        </td>
    </tr>
    


    <%=uiEditTR%>>
        <%=uiEditHeadTD%> width=250>最后修改时间：</td>
        <%=uiEditTD%>>
            <input type=text class="texts"  name="LastUpdateTime" size=20  value="<%=obj.viewLastUpdateTime(con)%>" key_tab="<%=key_tab++%>"><font color=red>*</font>
        </td>
    </tr>
    -->
    

<%=uiEditEnd%>

<!--********************* Part6:Action Area  ***************-->
<%=uiCommandStart%>>
    <%=uiCommandTR%>>
        <%=uiCommandTD%>>                     
            <input type=button class="buttons" value=" 保存&添加 " onclick="doSaveAndNew();return false;">
            <input type=button class="buttons" value="    保存   " onclick="doSave();return false;">
            <input type=button class="buttons" value="    返回   " onclick="doCancel();return false;">
        </td>
    </tr>
<%=uiCommandEnd%>
</form>
<script language=javascript>
    selectOnChange1();
    SetValue("UpperCategoryCode","<%=categorycode2%>"); //产品分类编码
    selectOnChange2();
    SetValue("CategoryCode","<%=categorycode1%>"); //产品分类编码
</script>
<%@ include file="/framework/foot.jsp"%>

<!--
    Author    :chengbiao.he
    FileName  :/system/base/ProductEdit.jsp
-->
